def max_drawdown
	drawdown = 0
	max_before = 0
	for j in range(len(x):
		max_before = max(x[j],max_before)
		drawdown_new = x[j]-max_before
		drawdown = max(drawdown_new,drawdown)